package com.gblw.rjkf.pj.seata;

import com.gblw.rjkf.pj.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(value = "seata-account-service444")
public interface AccountFeginApi {
    @PostMapping("/account/decrease")
    Result decrease(@RequestParam("userId") long userId, @RequestParam("amount") double amount) ;

}
